package com.jiangong.entity;

public class PowerBarry {
    private String time;
    private Double voltage;
    private Double current;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Double getVoltage() {
        return voltage;
    }

    public void setVoltage(Double voltage) {
        this.voltage = voltage;
    }

    public Double getCurrent() {
        return current;
    }

    public void setCurrent(Double current) {
        this.current = current;
    }
    public Double multiplyValues() {
        if (voltage == null || current == null) {
            return 0.0; // 或者根据业务需求返回其他默认值
        }
        return voltage * current;
    }
}
